﻿@model LeadMaster.Models.FrameworkAgreements

@{
    ViewBag.Title = "Edit";
}

<div class="spacer"></div>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Edit Framework Agreement</legend>
        @Html.HiddenFor(m => m.FrameworkAgreementID)

        <div class="editor-label">
            @Html.LabelFor(model => model.Title)
        </div>
        <div class="editor-field">
            @Html.TextBoxFor(model => model.Title, new { @class = "largetextbox" })
            @Html.ValidationMessageFor(model => model.Title)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.LabelFor(model => model.DocumentName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DocumentName)
            @Html.ValidationMessageFor(model => model.DocumentName)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Version)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Version)
            @Html.ValidationMessageFor(model => model.Version)
        </div>
        <div class="spacer"></div>
        <div class="editor-label">
            &nbsp;
        </div>
        <div class="editor-field">
            <h2><a href="~/Docs/FrameworkDocs/@(Model.DocumentName)"><img src="../../Images/viewdoc.png" /></a></h2>
        </div>
        <div class="spacer"></div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
